import axiosInstance from "@/tool/Myaxios";
//已选课程
export async function getSelectedList(account){
    return (await axiosInstance.get(`/select/selected/${account}`)).data.result
}
//未选课程
export async function getUnselectedList(account){
    return (await axiosInstance.get(`/select/unselected/${account}`)).data.result
}
//选课
export async function addCourse(account,course){
    return (await axiosInstance.post(`/select/addCourse/${account}`,course)).data
}
//退课
export async function deleteCourse(account,course){
    return (await axiosInstance.post(`/select/dropCourse/${account}`,course)).data
}
